﻿Imports Cls_Common
Partial Class FrontEnd_Control_Store_SearchProduct
    Inherits System.Web.UI.UserControl

    Protected Sub btnSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSearch.Click
        If Not Page.RouteData.Values("Id") Is Nothing AndAlso Not Page.RouteData.Values("QueryString") Is Nothing Then
            Dim url = MainDomain & Page.RouteData.Values("QueryString") & "-" & Page.RouteData.Values("Id") & "/tim-san-pham.html?s=" & txtSearch.Text.Trim
            Response.Redirect(url)

        End If
    End Sub
End Class
